var fs = require('fs');

function readdir(url){
	return new Promise((resolve,reject) => {
		fs.readdir(url,(err,files) => {
			if(err) reject(err);
			resolve(files)
		})
	})
}

exports.readdir = readdir;
